SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 63971: An SQL query returns no data rows when you use SAS/ACCESS® Interface to Oracle

DetailsHotfixAboutRate It

When you run SAS® 9.4M6 (TS1M6) in AIX, Solaris, or HP-UX operating environments and connect to Oracle, an SQL query returns no rows when data is expected.

For example, when you run the following code, which should return one row, no data rows are returned:

libname ordb oracle user="user-ID" password="db-password"  path="tns_name"  ;
proc sql;
   connect using ordb as oracle;
   select * from connection to oracle
         (select 123 as col1, 'Test' as col2 from dual);
   disconnect from oracle;
quit;

This issue occurs in SAS 9.4M6 in UNIX environments that have the Big Endian byte sequence. To determine whether you are using a Big Endian byte sequence, run the following code:

1? %put &SYSENDIAN;
BIG

To work around this issue, complete the following steps:

  1. Log on to the UNIX system as the SAS installer.
  2. Go to the !SASROOT directory.
  3. Use the following command to go to the sasexe subdirectory: cd sasexe 
  4. Use the following command to remove the sasora file: rm -f sasora
  5. Create a new sasora link using the appropriate command for your environment:
    • AIX: ln -s orr6411 sasora
    • Solaris: ln -s ors6411 sasora
    • HP-UX: ln -s orh6i11 sasora
  6. Restart the SAS session to apply the changes.

Click the Hot Fix tab in this note to access the hot fix for this issue.



Operating System and Release Information

Product FamilyProductSystemProduct ReleaseSAS Release
ReportedFixed*ReportedFixed*
SAS SystemSAS/ACCESS Interface to Oracle64-bit Enabled AIX9.439.439.4 TS1M69.4 TS1M6
64-bit Enabled Solaris9.439.439.4 TS1M69.4 TS1M6
HP-UX IPF9.439.439.4 TS1M69.4 TS1M6
* For software releases that are not yet generally available, the Fixed Release is the software release in which the problem is planned to be fixed.